﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Automaty_Komórkowe
{
    public partial class glowna : Form
    {
        public glowna()
        {
            InitializeComponent();
        }

        private void nowaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            bramkilogiczne newMDIChild = new bramkilogiczne();
            // Set the Parent Form of the Child window.
            newMDIChild.MdiParent = this;
            // Display the new form.
            newMDIChild.Show();
        }

        private void zamknijToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void oProgramieToolStripMenuItem_Click(object sender, EventArgs e)
        {
            oprogramie newMDIChild = new oprogramie();
            // Set the Parent Form of the Child window.
            newMDIChild.MdiParent = this;
            // Display the new form.
            newMDIChild.Show();
        }

        private void licencjaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            licencja newMDIChild = new licencja();
            // Set the Parent Form of the Child window.
            newMDIChild.MdiParent = this;
            // Display the new form.
            newMDIChild.Show();
        }

        private void pomocToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            pomoc.SetHelpNavigator(this, HelpNavigator.Topic);
            this.Focus();
            SendKeys.SendWait("{F1}");
            pomoc.SetHelpNavigator(this, HelpNavigator.TableOfContents);
        }
    }
}
